package com.crcode.crm.bean.Industry;
import java.io.Serializable;
import java.util.UUID;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**行业实体类
 * @author lmz
 * @company Peter
 * @create 2019/3/25  10:11
 */

@Entity
@Table(name = "data_industry")
public class IndustryBean implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", length = 20)
    private Integer id; // 序号

    @Column(length = 100)
    private String uuid = UUID.randomUUID().toString().replaceAll("-", "");// 程序序号

    @Column(length = 100)
    private String indName;//行业名称

    @Column(length = 100)
    private String puuid;//父级程序序号

    @Column(length = 100)
    private String indRemark;//父级程序序号

    /**
     * 行业 无参构造方法
     */
    public IndustryBean() {
    }



    /**
     * 行业 有参构造方法
     * @param uuid
     * @param indName
     * @param puuid
     * @param indRemark
     */

    public IndustryBean(String uuid, String indName, String puuid, String indRemark) {
        this.uuid = uuid;
        this.indName = indName;
        this.puuid = puuid;
        this.indRemark = indRemark;

    }
    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    /**
     * 获取行业数据库中自增ID
     * @return
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设定行业数据库自增ID
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取行业程序uuid
     * @return
     */
    public String getUuid() {
        return uuid;
    }

    /**
     * 设置行业程序UUid
     * @param uuid
     */
    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    /**
     * 获取行业名称
     * @return
     */
    public String getIndName() {
        return indName;
    }
    /**
     * 设置行业名称
     * @param indName
     */
    public void setIndName(String indName) {
        this.indName = indName;
    }




    /**
     * 获取行业父级uuid
     * @return
     */
    public String getPuuid() {
        return puuid;
    }

    /**
     * 设置行业父级uuid
     * @param puuid
     */
    public void setPuuid(String puuid) {
        this.puuid = puuid;
    }

    /**
     * 获取行业备注信息
     * @return
     */
    public String getIndRemark() {
        return indRemark;
    }

    /**
     * 设置行业备注信息
     * @param indRemark
     */
    public void setIndRemark(String indRemark) {
        this.indRemark = indRemark;
    }



}
